package com.ruoyi.project.business.punchhelp.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.business.punch.request.PunchOfDayRequest;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
public class SaveOrUpdatePunchRequest implements Serializable {

    /**
     * $column.columnComment
     */
    private Long deptId;

    /**
     * 员工ID
     */
    private Long userId;

    /**
     * 考勤月 yyyy-MM
     */
    @JsonFormat(pattern = "yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date yearMonth;

    private Integer dayOfMonth;

    private List<PunchOfDayRequest> punchesOfDay;

}
